<?php

require_once('includes/LoginController.php');

$acb = new LoginController();

//Check for login-attempts
if (    !$acb->isAuthenticated() && //not already authenticated
        !empty($_POST['userOrEmail'])) //made a post-request with at least the username filled in
    //Try login
    $acb->tryLogin();

$acb->display('login.tpl');

?>